cc.Class({
    extends: cc.Component,

    properties: {
    },

    onLoad(){
        //当屏幕大小发生改变时调用
        cc.view.setResizeCallback(()=>{
            this.node.width = cc.winSize.width;
            this.node.height = cc.winSize.height;
            this.node.getChildByName('loadUi').scale = cc.winSize.width/2001;
        });
    }
});
